package cn.itcast.provider.clients;


import cn.itcast.provider.entity.User;

/**
 * @author 虎哥
 */
public class UserClientFallback implements UserClient{

    /**
     * UserClient的queryById的fallback方法
     * @param id id
     * @return 默认返回值
     */
    @Override
    public User queryById(Long id) {
        User user = new User();
        user.setName("我是默认用户");
        return user;
    }
}
